#include "Scene_PCH.h"
#include "TerrainSurface.h"

/*--------------------------------------------------------------------------*/

TerrainSurface::TerrainSurface(const std::string& name, int size)
	: ISurface(NULL, -1, EVertex::Indices | EVertex::Position0 | EVertex::Normal0 | EVertex::TexCoord0, size*size, 2*size*(size-1)+(size-1))//size*(2*size-3)+2 + size-1)
{
	m_vertexdata = new uchar[GetSize()];
	this->SetMemory(m_vertexdata);

	m_name = name;
}

/*--------------------------------------------------------------------------*/

TerrainSurface::~TerrainSurface()
{

}

/*--------------------------------------------------------------------------*/
